package com.hlt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzf
 * @since 2024-11-25
 */
@Data
@TableName("favorites")
public class Favorites implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏ID，主键
     */
    @TableId(value = "favorite_id", type = IdType.AUTO)
    private Integer favoriteId;

    /**
     * 文章ID
     */
    private Integer postId;

    /**
     * 收藏用户ID
     */
    private Integer userId;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

}
